home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / Storage.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  1.7 KB  |  75 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _STORAGE_
  3. #define _STORAGE_
  4.  
  5. #ifndef _ODOBJECT_
  6. #include "ODObject.idl"
  7. #endif
  8.  
  9. //==============================================================================
  10. // Classes defined in this interface
  11. //==============================================================================
  12.  
  13. interface   ODStorageSystem;
  14.  
  15. //==============================================================================
  16. // Classes used in this interface
  17. //==============================================================================
  18.  
  19. interface   ODBaseSession;
  20. interface   ODContainer;
  21.  
  22. //==============================================================================
  23. // Implementation Types
  24. //==============================================================================
  25.  
  26.  
  27.  
  28. //==============================================================================
  29. // ODStorageSystem
  30. //==============================================================================
  31.  
  32. interface ODStorageSystem :   ODObject   
  33. {
  34.     void InitStorageSystem(in ODBaseSession session,
  35.                             in  ODHeap heap);
  36.     
  37.     ODBaseSession     GetSession();
  38.     
  39.     ODContainer   GetContainer(in ODContainerType containerType,
  40.                                 in ODContainerID id);
  41.     
  42.     ODContainer   CreateContainer(in ODContainerType containerType,
  43.                                     in ODContainerID id);
  44.                       
  45.     void NeedSpace(in ODSize memSize,
  46.                     in ODBoolean doPurge);
  47.  
  48.     
  49. #ifdef __SOMIDL__
  50.     implementation
  51.     {
  52.         override:
  53.             somInit,
  54.             somUninit,
  55.             Purge;
  56.         releaseorder:
  57.             InitStorageSystem,
  58.             GetSession,
  59.             GetContainer,
  60.             CreateContainer,
  61.             NeedSpace,
  62.             GrowHeap,
  63.             ReleaseContainer,
  64.             GetContainerSuite,
  65.             GetHeap,
  66.             GetCMSession,
  67.             SetCMSession;
  68.     
  69.   };
  70. #endif
  71. };
  72.  
  73.  
  74. #endif  // _STORAGE_
  75.